﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
namespace Bam
{
    static class globals
    {
        public static bool IS_WINDOWS = true;
        public static SpriteFont default_font;
        public static SpriteBatch spriteBatch;
        public static List<Input> inputs = new List<Input>();
        public static void drawText(String text, float x, float y, Color color)
        {
            
            if (default_font != null && spriteBatch != null)
            {
                Vector2 TitleSize = default_font.MeasureString(text);
                spriteBatch.DrawString(default_font, text,
                new Vector2(x,y),color);
            }
        }
        public static void add_input(Input i)
        {
            if (inputs == null)
            {
                inputs = new List<Input>();
            }
            inputs.Add(i);
        }
        public static void  update_inputs(){
            
            foreach (Input i in inputs)
            {
                i.update();
            }
        }
    }
}
